package com.flyduck.system.vo.userCenter.trans;


import cn.hutool.core.bean.BeanUtil;
import com.flyduck.system.entity.SysUserEntity;
import com.flyduck.system.vo.userCenter.SysUserCenterUpdateReqVO;
import com.google.common.base.Function;


/**
 * @program: flyduck-platform
 * @description:
 * @author: flyduck
 * @create: 2021-02-01 12:42
 **/
public class SysUserCenterUpdateReqVOToSysUserEntity implements Function<SysUserCenterUpdateReqVO, SysUserEntity> {
    @Override
    public SysUserEntity apply(SysUserCenterUpdateReqVO sysUserCenterUpdateReqVO) {
        SysUserEntity sysUserEntity = new SysUserEntity();
        BeanUtil.copyProperties(sysUserCenterUpdateReqVO,sysUserEntity);
        sysUserEntity.setId(Long.valueOf(sysUserCenterUpdateReqVO.getId()));
        return sysUserEntity;
    }

}
